package com.odm.communitymanage.ui.mine.MyPay

import com.chad.library.adapter.base.entity.node.BaseNode
import com.chad.library.adapter.base.provider.BaseNodeProvider
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.odm.communitymanage.R
import com.odm.communitymanage.core.bean.TypeExpense

/**
 * @description: 类型费用 适配器
 * @author: ODM
 * @date: 2020/4/20
 */
class TypeExpenseAdapter : BaseNodeProvider() {

    override val itemViewType: Int
        get() = 2
    override val layoutId: Int
        get() = R.layout.item_my_pay_content

    override fun convert(helper: BaseViewHolder, item: BaseNode) {
        val entity : TypeExpense ?= item as TypeExpense
        helper.setText(R.id.tv_type_MyPay  ,entity?.type)
        helper.setText(R.id.tv_price_MyPay  ,entity?.price)


    }
}